package test2.experiment7;

import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Scanner;

public class Practice6_3 {
    public static void main(String[] args) throws IOException {
        int data = 0;
        int sum = 0;
        Scanner sc = new Scanner(System.in);

        System.out.print("Input data: ");
        for (int i = 0; i < 5; i++) {
            data = sc.nextInt();
            System.out.print(" " + data);
            sum += data;
        }
        sc.close();
        System.out.println();
        System.out.println("sum: " + sum);
    }
}